home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-22 | 2.9 KB | 74 lines | [TEXT/MPCC] |
- //
- // File: TestFunctions.h
- //
- // Contains: Localized sound support for QuickTime VR movies.
- //
- // Written by: Tim Monroe
- //
- // Copyright: © 1996 by Apple Computer, Inc., all rights reserved.
- //
- // Change History (most recent first):
- //
- // <1> 12/05/96 rtm ported earlier 3D sound support functions to VRShell
- //
- //
-
- // header files
-
- #include "QTVR.h"
- #include "QTVRFrmt.h"
- #include "QD3D.h"
- #include "QD3DGroup.h"
- #include "QD3DStorage.h"
- #include "QD3DErrors.h"
- #include "QD3DView.h"
- #include "QD3DMath.h"
- #include "QD3DGeometry.h"
- #include "QD3DShader.h"
- #include "QD3DRenderer.h"
- #include "QD3DLight.h"
- #include "QD3DDrawContext.h"
- #include "QD3DCamera.h"
- #include "QD3DTransform.h"
- #include "QD3DStorage.h"
- #include "QD3DIO.h"
- #include "QD3DSet.h"
-
- #include "MacApplication.h"
- #include "MacFramework.h"
-
- #pragma once
-
- // constants
- #define kAnimateRadians 0.1 // this controls the speed of animation rotation
- #define k3DObjectDistance 3.0 // this controls the placement of the 3D object
- #define kPicFileHeaderSize 512 // the number of bytes in PICT file header
-
- // function prototypes
- void VR3DObjects_Init (void);
- void VR3DObjects_Stop (void);
- Boolean VR3DObjects_IsQD3DAvailable (void);
- ApplicationDataHdl VR3DObjects_InitWindowData (WindowObject theWindowObject);
- TQ3GroupObject VR3DObjects_CreateModel (TQ3ObjectType theObjectType);
- TQ3ViewObject VR3DObjects_CreateView (GWorldPtr theGWorld);
- TQ3GroupObject VR3DObjects_CreateLights (void);
- TQ3DrawContextObject VR3DObjects_CreateDrawContext (GWorldPtr theGWorld);
- TQ3CameraObject VR3DObjects_CreateCamera (CGrafPtr thePort);
- void VR3DObjects_SetSubdivisionStyle (TQ3GroupObject theGroup, short theNumDivisions);
- void VR3DObjects_AnimateModel (WindowObject theWindowObject);
- TQ3Status VR3DObjects_DrawModel (WindowObject theWindowObject);
- void VR3DObjects_GetModelFromFile (void);
- void VR3DObjects_InstallPrescreenRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
- void VR3DObjects_InstallInterceptRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
- pascal OSErr VR3DObjects_PrescreenRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
- pascal void VR3DObjects_InterceptRoutine (QTVRInstance theInstance, QTVRInterceptPtr theMsg, WindowObject theWindowObject, Boolean *cancel);
- void VR3DObjects_SetCamera (WindowObject theWindowObject);
- void VR3DObjects_SetCameraAspectRatio (WindowObject theWindowObject);
- void VR3DObjects_UpdateDrawContext (WindowObject theWindowObject);
- Boolean VR3DObjects_GetEmbeddedMovie (Movie *theMoviePtr);
- Boolean VR3DObjects_LoadEmbeddedMovie (FSSpec *theMovieFile, Movie *theMoviePtr);
- void VR3DObjects_LoopEmbeddedMovie (Movie theMovie, GWorldPtr theGWorld);
- PicHandle VR3DObjects_GetEmbeddedPicture (void);
- void VR3DObjects_FadeObjects (ApplicationDataHdl theAppData, Boolean isShow);
-
-